package yto.freemarker.springcloud.feign;

import org.springframework.stereotype.Component;
import yto.freemarker.springcloud.entity.User;

/**
 * @author dongxing
 * @create 2018-01-22 11:24
 **/
@Component
public class UserFeignClientFallback implements UserFeignClient {
    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(5L);
        user.setUsername("伊泽瑞尔");
        return user;
    }
}
